﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Admin.master" AutoEventWireup="true"
    CodeFile="TranImport.aspx.cs" Inherits="List_TranImport" Title="批量上传" %>

<%@ Register Assembly="WFNetCtrl" Namespace="WFNetCtrl" TagPrefix="cc1" %>
<%@ Register Src="../WUC/CatalogTree.ascx" TagName="CatalogTree" TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="Conut1" runat="Server">
    <table>
        <tr>
            <td>
                收藏分类名称：
            </td>
            <td>
                <asp:TextBox ID="tbListName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                对应栏目：
            </td>
            <td>
                <uc2:CatalogTree ID="dtMenu" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                进度 ：
            </td>
            <td>
                已添加：<asp:Label ID="lbAmount" runat="server">0</asp:Label>/总数：<asp:TextBox ID="tbTotal"
                    runat="server">100</asp:TextBox><asp:RequiredFieldValidator ID="rfvTotal"
                    runat="server" ErrorMessage="总数不能为空。" ControlToValidate="tbTotal"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revTotal" runat="server" ControlToValidate="tbTotal"
                    Display="Dynamic" ErrorMessage="总数必须为数字。" ValidationExpression="\d" Enabled="false"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                说明 ：
            </td>
            <td>
                <asp:TextBox ID="tbListRemark" runat="server">说明</asp:TextBox><asp:RequiredFieldValidator ID="rfvtbListRemark"
                    runat="server" ErrorMessage="说明不能为空。" ControlToValidate="tbListRemark"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                上传Txt文件 ：           </td>
            <td>
                <asp:FileUpload ID="fuPath" runat="server" /><asp:Button ID="btnAdd" runat="server"
                    Text="提交" OnClick="btnAdd_Click"></asp:Button>只接受文本文件上传
            </td>
        </tr>
        <tr id="trCreateTime" runat="server">
            <td>
                创建时间：
            </td>
            <td>
                <asp:Label ID="tbListCreateTime" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <%--<div style="width: 100%; height: 400px; overflow: auto">--%>
                <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" Width="100%"
                    PageSize="25">
                    <Columns>
                        <asp:TemplateField HeaderText="选择" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="30px">
                            <ItemTemplate>
                                <asp:CheckBox ID="cbSel" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle Width="30px" HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="收藏">
                            <ItemTemplate>
                                <a href="../Movie/Browse.aspx?ID=<%# Eval("MovieID") %>" title='<%# Eval("MovieName") %>' target="_blank">
                                    <%# DataBinder.Eval(Container.DataItem, "MovieName")%></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="作者" DataField="UserName" />
                        <asp:BoundField HeaderText="创建时间" DataField="CreateTime" />
                        <asp:BoundField HeaderText="简介" DataField="Remark" />
                    </Columns>
                    <RowStyle HorizontalAlign="Center" BackColor="#EFF3FB" />
                    <EmptyDataTemplate>
                        <font color="red" style="font-size: large; color: red; text-decoration: underline;">
                            无符合条件的记录</font>
                    </EmptyDataTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                <%--</div>--%>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <cc1:DefaultPager ID="pGrid" runat="server" Align="Right" OnClick="pGrid_OnClick">
                </cc1:DefaultPager>
            </td>
        </tr>
    </table>
</asp:Content>
